<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div>
      hello wrod
    </div>
  </body>
  <script>
    let s = new Set();
    [1, 3, 4, 3, 5, 6, 1, 2].forEach((item) => {
      s.add(item);
      c;
    });
    for (const i of s) {
      console.log(i);
    }

    // set 可以接受一个数组初始化对象

    const a = new Set(["sss", 2, 2, 3, 3, 4, 5, 5]);
    console.log(...a);
  </script>
</html>
